/* Questions before the call. Light section between the dark opinions and the dark contact.
   Left, the heading and a bulb; right, the questions as native <details> along a wire.
   The electrical idea is literal and quiet: every question is a node on the wire, a pulse of
   current travels down it, the open node lights up and so does the bulb. */
.mm-faq {
  background: #fafaf7;
  color: #101827;
  margin-block: 0 !important;
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.mm-faq__inner {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  padding-inline: var(--mm-section-gutter);
}

.mm-faq__intro {
  position: sticky;
  top: 6rem;
}

.mm-faq__signal {
  background: #f4c542;
  border-radius: 999px;
  display: block;
  height: 4px;
  margin-bottom: 1.2rem;
  width: 56px;
}

.mm-faq__title {
  color: #101827;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}

.mm-faq__title-accent {
  color: #315bff;
}

.mm-faq__lead {
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 1rem 0 0;
  max-width: 30rem;
}

/* The bulb: glass and base in thin navy strokes, the filament grey until the section is lit. */
.mm-faq__lamp {
  align-items: center;
  display: flex;
  gap: 1.2rem;
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 0;
}

.mm-faq__bulb {
  flex: none;
  height: 150px;
  overflow: visible;
  width: 106px;
}

.mm-faq__glow {
  fill: #f4c542;
  opacity: 0;
  transform-origin: 60px 62px;
  transform: scale(0.6);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}

.mm-faq__glass {
  fill: #fff;
  stroke: #101827;
  stroke-width: 2.4;
  transition: fill 420ms ease-out;
}

.mm-faq__filament {
  fill: none;
  stroke: #9aa5b4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transition: stroke 300ms ease-out, filter 300ms ease-out;
}

.mm-faq__base {
  fill: #101827;
}

.mm-faq__tip {
  fill: #101827;
}

.mm-faq.is-lit .mm-faq__glow {
  opacity: 0.28;
  transform: scale(1);
}

.mm-faq.is-lit .mm-faq__glass {
  fill: #fff6d6;
}

.mm-faq.is-lit .mm-faq__filament {
  filter: drop-shadow(0 0 4px rgb(244 197 66 / 90%));
  stroke: #f2b300;
}

.mm-faq__lamp-caption {
  color: #667180;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 14rem;
}

.mm-faq__call {
  align-items: center;
  color: #101827;
  display: inline-flex;
  font-size: 1.02rem;
  gap: 0.7rem;
  margin-top: clamp(1.4rem, 2.5vw, 2rem);
  text-decoration: none;
}

.mm-faq__call svg {
  background: #101827;
  border-radius: 999px;
  box-sizing: content-box;
  fill: none;
  flex: none;
  height: 18px;
  padding: 0.55rem;
  stroke: #f4c542;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.mm-faq__call strong {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.mm-faq__call:hover span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* The list and its wire. The wire sits under the nodes; the pulse is a short bright segment
   travelling down it in a loop. */
.mm-faq__list {
  display: grid;
  gap: 0.65rem;
  padding-left: 2.1rem;
  position: relative;
}

.mm-faq__wire {
  background: #d5dde7;
  border-radius: 999px;
  bottom: 1.6rem;
  left: 0.55rem;
  overflow: hidden;
  position: absolute;
  top: 1.6rem;
  width: 3px;
}

.mm-faq__current {
  animation: mm-faq-current 5.5s linear infinite;
  background: linear-gradient(180deg, transparent, #f4c542 45%, #ffd866 55%, transparent);
  display: block;
  height: 120px;
  width: 100%;
}

@keyframes mm-faq-current {
  from {
    transform: translateY(-120px);
  }

  to {
    transform: translateY(2000px);
  }
}

.mm-faq__item {
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.mm-faq__item[open] {
  border-color: #101827;
  box-shadow: 0 16px 34px -26px rgb(16 24 39 / 55%);
}

.mm-faq__question {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.9rem;
  list-style: none;
  padding: 1rem 1.1rem 1rem 1.2rem;
  position: relative;
}

.mm-faq__question::-webkit-details-marker {
  display: none;
}

.mm-faq__question:focus-visible {
  border-radius: 10px;
  outline: 3px solid #315bff;
  outline-offset: 2px;
}

/* The node sits on the wire, outside the card, and lights up when its question is open. */
.mm-faq__node {
  background: #fff;
  border: 3px solid #b8c3d1;
  border-radius: 50%;
  height: 14px;
  left: calc(-2.1rem + 0.55rem + 1.5px - 7px);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: border-color 200ms ease-out, background-color 200ms ease-out, box-shadow 200ms ease-out;
  width: 14px;
}

.mm-faq__item[open] .mm-faq__node {
  background: #f4c542;
  border-color: #f4c542;
  box-shadow: 0 0 0 4px rgb(244 197 66 / 22%), 0 0 14px rgb(244 197 66 / 80%);
}

.mm-faq__q {
  flex: 1;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.2;
}

/* The plus turns into a cross: the switch flipped. */
.mm-faq__switch {
  align-items: center;
  background: #eef1f5;
  border-radius: 999px;
  display: inline-flex;
  flex: none;
  height: 32px;
  justify-content: center;
  transition: background-color 160ms ease-out, transform 200ms ease-out;
  width: 32px;
}

.mm-faq__switch svg {
  fill: none;
  height: 16px;
  stroke: #101827;
  stroke-linecap: round;
  stroke-width: 2.4;
  width: 16px;
}

.mm-faq__item[open] .mm-faq__switch {
  background: #f4c542;
  transform: rotate(45deg);
}

.mm-faq__answer {
  animation: mm-faq-reveal 220ms ease-out;
  border-top: 1px solid #eef1f5;
  padding: 0.9rem 1.2rem 1.2rem;
}

.mm-faq__answer p {
  color: #1f2937;
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
}

@keyframes mm-faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .mm-faq__item:not([open]):hover {
    border-color: #315bff;
  }

  .mm-faq__item:not([open]):hover .mm-faq__node {
    border-color: #315bff;
  }
}

@media (max-width: 1023px) {
  .mm-faq__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .mm-faq__intro {
    position: static;
  }

  .mm-faq__lamp {
    gap: 1rem;
  }

  .mm-faq__bulb {
    height: 104px;
    width: 74px;
  }

  .mm-faq__call {
    display: none;
  }
}

@media (max-width: 700px) {
  .mm-faq__q {
    font-size: 1.08rem;
  }

  .mm-faq__question {
    gap: 0.7rem;
    padding: 0.9rem 0.9rem 0.9rem 1rem;
  }

  .mm-faq__list {
    padding-left: 1.6rem;
  }

  .mm-faq__wire {
    left: 0.35rem;
  }

  .mm-faq__node {
    left: calc(-1.6rem + 0.35rem + 1.5px - 7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-faq__current {
    animation: none;
    opacity: 0;
  }

  .mm-faq__answer {
    animation: none;
  }

  .mm-faq__glow,
  .mm-faq__glass,
  .mm-faq__filament,
  .mm-faq__item,
  .mm-faq__node,
  .mm-faq__switch {
    transition: none;
  }
}
