/* The Ask page. Builds on site.css, home.css, pages.css and features.css. The first screen is the ask box itself,
   working, in front of rows of meetings that drift past. */

.aq-hero {
  padding-top: 28px;
  overflow-x: clip;
}

.aq-hero .pg-top h1 {
  max-width: none;
  font-size: clamp(50px, 8.200vw, 122px);
  line-height: 0.96;
}

.aq-hero .pg-lede {
  max-width: 760px;
  margin-top: 22px;
}

/* The band: the meetings behind, the box in front. */
.aq-band {
  position: relative;
  margin-top: 20px;
  padding: 0 16px;
}

.aq-drift {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 40px;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.aq-row {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: aq-drift 90s linear infinite;
}

.aq-row:nth-child(2) {
  animation-duration: 120s;
  animation-direction: reverse;
}

.aq-row:nth-child(3) {
  animation-duration: 105s;
}

@keyframes aq-drift {
  to {
    transform: translateX(-50%);
  }
}

/* One meeting among many: a small sheet with its name and its day. */
.aq-note {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 15px 22px 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  white-space: nowrap;
}

.aq-note::before {
  content: "";
  grid-row: span 2;
  width: 17px;
  height: 22px;
  border: 1.500px solid #c9b78e;
  border-radius: 3px;
  background: linear-gradient(#c9b78e, #c9b78e) 3px 6px / 8px 1.500px no-repeat, linear-gradient(#c9b78e, #c9b78e) 3px 10px / 8px 1.500px no-repeat,
    linear-gradient(#c9b78e, #c9b78e) 3px 14px / 5px 1.500px no-repeat;
}

.aq-note b {
  color: var(--body);
  font-size: 14.500px;
  font-weight: 500;
}

.aq-note i {
  grid-column: 2;
  color: var(--faint);
  font-size: 13px;
  font-style: normal;
}

/* The box. Here the field is on top and the answer is written under it. */
.aq-chat {
  position: relative;
  width: min(680px, 100%);
  height: 440px;
  margin: 0 auto;
  padding: 20px 22px 18px;
  text-align: left;
}

/* The first question asks itself as the page opens; its answer says what was asked, so the bubble is left out. */
.aq-chat .chat-log > .chat-me:first-child {
  display: none;
}

.aq-chat .chat-next {
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}

.aq-chat .chat-next button {
  flex: none;
  padding: 6px 14px;
  font-size: 14px;
}

.aq-chat .chat-next .ic {
  display: none;
}

.aq-chat .askbar {
  height: 62px;
  font-size: 17px;
}

.aq-chat .chat-next {
  padding: 14px 0 16px;
}

.aq-fine {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14.500px;
  text-align: center;
}

.aq-hero .fx-cta {
  margin-top: 22px;
}

/* ---------- Where you can ask: three panels, each with its tag ---------- */
.aq-where h2,
.aq-app h2 {
  text-align: center;
}

.aq-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.aq-panels li {
  position: relative;
  min-width: 0;
}

.aq-panels .vg {
  height: 400px;
  padding: 70px 22px 22px;
}

.aq-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--deep);
  font-size: 14.500px;
  font-weight: 700;
}

.aq-panels h3 {
  margin-top: 22px;
  color: var(--ink);
  font: 400 30px/1.080 var(--serif);
  letter-spacing: -0.015em;
}

.aq-panels p {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.45;
}

/* ---------- What you can ask: a still list by kind. Each question is a row to press ---------- */
.aq-sub {
  max-width: 320px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.5;
}

.aq-kinds {
  display: grid;
  gap: 36px;
}

.aq-kind h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font: 700 13px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aq-kind button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: 400 28px/1.150 var(--serif);
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}

.aq-kind button .ic {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--body);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.aq-kind button:hover .ic {
  border-color: var(--amber);
  background: var(--amber);
  color: #2e1c00;
}

.aq-kind button:active .ic {
  transform: scale(0.94);
}

.aq-app .fx-stage {
  margin-top: 48px;
}

@media (max-width: 900px) {
  .aq-hero {
    padding-top: 28px;
  }

  /* On a small screen the box is as tall as its answer, and the three questions are one row to push sideways. */
  .aq-chat {
    height: auto;
    padding: 16px 16px 14px;
  }

  .aq-chat .chat-log {
    flex: none;
    min-height: 300px;
    max-height: 470px;
  }

  .aq-chat .chat-next {
    margin-inline: -16px;
    padding-inline: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .aq-panels .vg {
    padding: 66px 14px 20px;
  }

  .aq-panels .vg-ui {
    max-width: 100%;
    zoom: 0.84;
  }

  .aq-where h2,
  .aq-app h2 {
    text-align: left;
  }

  .aq-kind button {
    font-size: 24px;
  }

  .aq-panels {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    margin-top: 32px;
  }

  .aq-panels .vg {
    height: auto;
    min-height: 320px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .aq-row {
    animation: none;
  }
}
