/* ==========================================================================
   AI Assistant — full page
   ========================================================================== */

.ai-hero {
  padding-bottom: clamp(40px, 5vw, 64px);
}

.ai-hero__blob {
  top: -120px;
  right: -140px;
  width: clamp(280px, 38vw, 520px);
  height: clamp(280px, 38vw, 520px);
}

.ai-hero__ring {
  left: -90px;
  bottom: -160px;
  width: 320px;
  height: 320px;
}

.ai-hero__line {
  bottom: 0;
}

.ai-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.ai-hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ai-hero__proof svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* The chat is already on screen here, so the floating launcher would only cover the composer. */
body[data-page="ai"] .fab--ai {
  display: none;
}

/* --------------------------------------------------------------------------
   Workspace: chat card + side panel
   -------------------------------------------------------------------------- */
.ai-workspace__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3.5vw, 48px);
}

.ai-workspace__chat {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  height: min(720px, calc(100dvh - var(--header-h) - 40px));
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(169, 122, 60, 0.28);
  border-radius: 36px 12px 36px 12px;
  background: var(--card);
  box-shadow: var(--shadow-float), 0 0 0 8px rgba(207, 165, 101, 0.08);
}

.ai-workspace__panel {
  display: grid;
  gap: 20px;
}

.ai-panel {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-asym-2);
  background: var(--card);
}

.ai-panel:nth-child(even) {
  border-radius: var(--r-asym);
}

.ai-panel .eyebrow {
  margin-bottom: 12px;
}

.ai-panel h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 18px;
}

.ai-panel--how {
  position: relative;
  overflow: hidden;
  background: var(--night-gold-glow), var(--night);
  border-color: rgba(207, 165, 101, 0.22);
  color: var(--on-night);
}

.ai-panel--how h2,
.ai-panel--how h3 {
  color: #fff;
}

.ai-panel--how .eyebrow {
  color: var(--gold-300);
}

.ai-flow {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-flow::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 21px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-400), rgba(207, 165, 101, 0.1));
}

.ai-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
}

.ai-flow__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(207, 165, 101, 0.45);
  border-radius: 14px 5px 14px 5px;
  background: var(--night);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-300);
}

.ai-flow h3 {
  margin: 2px 0 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ai-flow p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--on-night-muted);
}

.ai-panel__questions {
  display: grid;
  gap: 8px;
}

.ai-panel__question {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px 5px 16px 5px;
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: left;
  transition: border-color var(--dur-base) ease, transform var(--dur-fast) var(--ease-spring), color var(--dur-base) ease;
}

.ai-panel__question:nth-child(even) {
  border-radius: 5px 16px 5px 16px;
}

.ai-panel__question:hover {
  border-color: var(--gold-500);
  color: var(--accent-strong);
}

.ai-panel__question:active {
  transform: scale(0.98);
}

.ai-panel__question svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
}

.ai-panel--limits .check-list {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.ai-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 20px 0 0;
}

@media (max-width: 1024px) {
  .ai-workspace__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-workspace__chat {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  body[data-page="ai"] .fab-stack {
    display: none;
  }

  .ai-workspace__chat {
    height: calc(100svh - var(--header-h) - 24px);
    min-height: 520px;
    max-height: 760px;
    border-radius: 28px 10px 28px 10px;
    box-shadow: var(--shadow-float);
  }
}
