/* ============================================================
   Page: /ask-anything/  (.p-ask-anything)
   The concept explainer (Sofia, 2026-07-30, howie-pill reference):
   one dark full-viewport stage on the approved aurora recipe with a
   pointer-chasing glow (--askx/--asky from behaviors/ask-anything.js),
   a floating pill search, suggestion chips, and the typed answer card.
   ============================================================ */

.p-ask-anything .ask-stage {
  --askx: 50%;
  --asky: 35%;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  /* the approved aurora card recipe (module.css / cta-fx.css) */
  background:
    radial-gradient(120% 95% at 12% 0%, color-mix(in oklab, var(--color-x3-blue-deep) 55%, transparent), transparent 62%),
    radial-gradient(110% 100% at 92% 100%, color-mix(in oklab, var(--color-x3-indigo) 45%, transparent), transparent 65%),
    var(--color-black);
}
/* the techy layer: a soft glow chases the pointer */
.p-ask-anything .ask-stage__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    520px at var(--askx) var(--asky),
    rgba(0, 106, 255, 0.22),
    transparent 70%
  );
}
.p-ask-anything .ask-stage__inner {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding: 140px 20px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-ask-anything .ask-title {
  margin-top: 18px;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--track-tighter);
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  color: var(--color-white);
  text-wrap: balance;
}
.p-ask-anything .ask-sub {
  margin-top: 16px;
  max-width: 52ch;
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- the pill ---------- */
.p-ask-anything .ask-pill {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(680px, 100%);
  height: 64px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.p-ask-anything .ask-pill:focus-within {
  border-color: rgba(0, 106, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.18);
}
.p-ask-anything .ask-pill__spark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
}
.p-ask-anything .ask-pill__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--color-white);
}
.p-ask-anything .ask-pill__input::placeholder { color: rgba(255, 255, 255, 0.45); }
.p-ask-anything .ask-pill__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 48px;
  padding-inline: 22px;
  border-radius: 999px;
  border: 0;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.p-ask-anything .ask-pill__go:hover { background: rgba(255, 255, 255, 0.88); }

/* ---------- suggestion chips ---------- */
.p-ask-anything .ask-chips {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
}
.p-ask-anything .ask-chip {
  height: 34px;
  padding-inline: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.p-ask-anything .ask-chip:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- answer card ---------- */
.p-ask-anything .ask-answer {
  margin-top: 44px;
  width: min(680px, 100%);
  text-align: left;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 28px 28px 24px;
  opacity: 0;
  transform: translateY(14px);
}
.p-ask-anything .ask-answer.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.p-ask-anything .ask-answer__q {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  font-size: var(--fs-2xl);
  line-height: 1.25;
  color: var(--color-white);
}
.p-ask-anything .ask-answer__block { margin-top: 22px; }
.p-ask-anything .ask-answer__text {
  margin-top: 8px;
  /* reserves rhythm while the typewriter runs */
  min-height: 1.6em;
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  color: rgba(255, 255, 255, 0.78);
}
/* the links ride a labeled block now ("Read more", Sofia 2026-07-30:
   the pills needed a cue that they open the pages behind the answer) */
.p-ask-anything .ask-answer__links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
}
.p-ask-anything .ask-answer__links.is-in {
  opacity: 1;
  transition: opacity 0.4s ease;
}
.p-ask-anything .ask-answer__note {
  margin-top: 20px;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-wide);
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 639px) {
  .p-ask-anything .ask-stage__inner { padding-top: 120px; }
  .p-ask-anything .ask-pill {
    height: 56px;
    padding-left: 16px;
  }
  .p-ask-anything .ask-pill__go { height: 42px; padding-inline: 16px; }
  .p-ask-anything .ask-answer { padding: 22px 20px 20px; }
}
